$(function () {
    $('.register').click(function () {
        var info = {
            phone: $('.phone').val(),
            code: $('.code').val(),
            username: $('.username').val(),
            password: $('.password').val(),
        };
        $.ajax({
            url: 'http://localhost:3000/users/register',
            type: 'post',
            date: info,
            success: function (date) {
                console.log(date);
            }
        })
    })
})